<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Traits;

trait LogTrait
{
    private static $logFormat;
    private static $logger;
    public static function getLogger()
    {
        return self::$logger;
    }
    public static function setLogger(\Psr\Log\LoggerInterface $logger)
    {
        self::$logger = $logger;
    }
    public static function getLogFormat()
    {
        return self::$logFormat ?: "\"{method} {uri} HTTP/{version}\" {code} {cost} {hostname} {pid}";
    }
    public static function setLogFormat($formatter)
    {
        self::$logFormat = $formatter;
    }
}

?>